﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Elderos.Articles
{
    public class FakeArticlesData : IArticlesData
    {
        private Article FakeArticle
        {
            get
            {
                return new Article
                    {
                        Body = "Hello world, tomorrow I'm going to New York. Hello to The Argentine",
                        Title = "The Argentine adventure is over.",
                        Copyright = "Copyright (c) elderos",
                        Date = DateTime.Now,
                        DateLine = "25.05.1987",
                        HasIdealHighlight = false,
                        Headline = "Big brother now watching TV.",
                        ID = -50,
                        ReutersID = -50
                    };
            }
        }

        public async Task<Article> GetArticleAsync(int articleID)
        {
            return FakeArticle;
        }

        public List<int> GetIdealArticles()
        {
            return new List<int>();
        }

        public async Task<QueuedArticle> DequeueArticleAsync()
        {
            return null;
        }

        public async Task UpdateArticleAsync(Article article, SqlTransaction transaction = null)
        {
            
        }

        public async Task UpdateQueuedArticleAsync(QueuedArticle queuedArticle, SqlTransaction transaction = null)
        {
            
        }

        public async Task<Article> GetUncheckedArticleAsync()
        {
            return FakeArticle;
        }

        public async Task<Article> GetArticleByQueueIDAsync(int queueID)
        {
            return null;
        }
    }
}
